package com.cms.common.kit;

import net.coobird.thumbnailator.ThumbnailParameter;
import net.coobird.thumbnailator.name.Rename;

public class CropRename extends Rename {

	private String mark;
	
	public CropRename(String mark) {
		this.mark=mark;
	}
	
	@Override
	public String apply(String name, ThumbnailParameter param) {
		return appendSuffix(name, "_"+this.mark);
	}

	public String getMark() {
		return mark;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}

	
}
